﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 料品质量相关信息数据传输对象 Copy DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class CopyOfItemInspectionInfoDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public CopyOfItemInspectionInfoDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
		
		
					SysVersion= 0; 
				
		
		
		
		
		
		
		
		
		
		
					DestroyInspectQty= -1; 
							InspectPeriod= 0; 
				
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        	        	        	        	        	        	        	        			if (this.ReceiptInspectRule1 != null) 
			{
				this.ReceiptInspectRule1.DoSerializeKeyList(dict);
			}
	        			if (this.ReceiptInspectRuleVer1 != null) 
			{
				this.ReceiptInspectRuleVer1.DoSerializeKeyList(dict);
			}
	        			if (this.InStockInspectRule != null) 
			{
				this.InStockInspectRule.DoSerializeKeyList(dict);
			}
	        			if (this.InStockInspectRuleVer != null) 
			{
				this.InStockInspectRuleVer.DoSerializeKeyList(dict);
			}
	        			if (this.SaleReturnCheckupRule != null) 
			{
				this.SaleReturnCheckupRule.DoSerializeKeyList(dict);
			}
	        			if (this.SaleReturnCheckupRuleVer != null) 
			{
				this.SaleReturnCheckupRuleVer.DoSerializeKeyList(dict);
			}
	        			if (this.BuildCompleteCheckUpRule != null) 
			{
				this.BuildCompleteCheckUpRule.DoSerializeKeyList(dict);
			}
	        			if (this.BuildCompleteCheckUpRuleVer != null) 
			{
				this.BuildCompleteCheckUpRuleVer.DoSerializeKeyList(dict);
			}
	        			if (this.ShipmentInspectRule != null) 
			{
				this.ShipmentInspectRule.DoSerializeKeyList(dict);
			}
	        			if (this.ShipmentInspectRuleVer != null) 
			{
				this.ShipmentInspectRuleVer.DoSerializeKeyList(dict);
			}
	        	        	        			if (this.ShipInspectRule != null) 
			{
				this.ShipInspectRule.DoSerializeKeyList(dict);
			}
	        			if (this.ShipInspectRuleVer != null) 
			{
				this.ShipInspectRuleVer.DoSerializeKeyList(dict);
			}

		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public CopyOfItemInspectionInfoDTOData(  System.Int64 iD  , System.DateTime createdOn  , System.String createdBy  , System.DateTime modifiedOn  , System.String modifiedBy  , System.Int64 sysVersion  , System.String qualityDescription  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData receiptInspectRule1  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData receiptInspectRuleVer1  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData inStockInspectRule  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData inStockInspectRuleVer  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData saleReturnCheckupRule  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData saleReturnCheckupRuleVer  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData buildCompleteCheckUpRule  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData buildCompleteCheckUpRuleVer  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData shipmentInspectRule  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData shipmentInspectRuleVer  , System.Int32 destroyInspectQty  , System.Int32 inspectPeriod  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData shipInspectRule  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData shipInspectRuleVer  )
		{
			initData();
			this.ID = iD;
			this.CreatedOn = createdOn;
			this.CreatedBy = createdBy;
			this.ModifiedOn = modifiedOn;
			this.ModifiedBy = modifiedBy;
			this.SysVersion = sysVersion;
			this.QualityDescription = qualityDescription;
			this.ReceiptInspectRule1 = receiptInspectRule1;
			this.ReceiptInspectRuleVer1 = receiptInspectRuleVer1;
			this.InStockInspectRule = inStockInspectRule;
			this.InStockInspectRuleVer = inStockInspectRuleVer;
			this.SaleReturnCheckupRule = saleReturnCheckupRule;
			this.SaleReturnCheckupRuleVer = saleReturnCheckupRuleVer;
			this.BuildCompleteCheckUpRule = buildCompleteCheckUpRule;
			this.BuildCompleteCheckUpRuleVer = buildCompleteCheckUpRuleVer;
			this.ShipmentInspectRule = shipmentInspectRule;
			this.ShipmentInspectRuleVer = shipmentInspectRuleVer;
			this.DestroyInspectQty = destroyInspectQty;
			this.InspectPeriod = inspectPeriod;
			this.ShipInspectRule = shipInspectRule;
			this.ShipInspectRuleVer = shipInspectRuleVer;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// ID
		/// 料品质量相关信息数据传输对象 Copy.Key.ID
		/// </summary>
		private System.Int64 m_iD ;
		[DataMember(IsRequired=false)]
		public System.Int64 ID
		{
			get	
			{	
				return m_iD ;
			}
			set	
			{	
				m_iD = value ;	
			}
		}
			
		

		/// <summary>
		/// 创建时间
		/// 料品质量相关信息数据传输对象 Copy.Sys.创建时间
		/// </summary>
		private System.DateTime m_createdOn ;
		[DataMember(IsRequired=false)]
		public System.DateTime CreatedOn
		{
			get	
			{	
				return m_createdOn ;
			}
			set	
			{	
				m_createdOn = value ;	
			}
		}
			
		

		/// <summary>
		/// 创建人
		/// 料品质量相关信息数据传输对象 Copy.Sys.创建人
		/// </summary>
		private System.String m_createdBy ;
		[DataMember(IsRequired=false)]
		public System.String CreatedBy
		{
			get	
			{	
				return m_createdBy ;
			}
			set	
			{	
				m_createdBy = value ;	
			}
		}
			
		

		/// <summary>
		/// 修改时间
		/// 料品质量相关信息数据传输对象 Copy.Sys.修改时间
		/// </summary>
		private System.DateTime m_modifiedOn ;
		[DataMember(IsRequired=false)]
		public System.DateTime ModifiedOn
		{
			get	
			{	
				return m_modifiedOn ;
			}
			set	
			{	
				m_modifiedOn = value ;	
			}
		}
			
		

		/// <summary>
		/// 修改人
		/// 料品质量相关信息数据传输对象 Copy.Sys.修改人
		/// </summary>
		private System.String m_modifiedBy ;
		[DataMember(IsRequired=false)]
		public System.String ModifiedBy
		{
			get	
			{	
				return m_modifiedBy ;
			}
			set	
			{	
				m_modifiedBy = value ;	
			}
		}
			
		

		/// <summary>
		/// 事务版本
		/// 料品质量相关信息数据传输对象 Copy.Sys.事务版本
		/// </summary>
		private System.Int64 m_sysVersion ;
		[DataMember(IsRequired=false)]
		public System.Int64 SysVersion
		{
			get	
			{	
				return m_sysVersion ;
			}
			set	
			{	
				m_sysVersion = value ;	
			}
		}
			 	
		

		/// <summary>
		/// 进货质检．版本
		/// 料品质量相关信息数据传输对象 Copy.进货.进货质检．版本
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_receiptInspectRule1 ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ReceiptInspectRule1
		{
			get	
			{	
				return m_receiptInspectRule1 ;
			}
			set	
			{	
				m_receiptInspectRule1 = value ;	
			}
		}
			
		

		/// <summary>
		/// 进货质检版本
		/// 料品质量相关信息数据传输对象 Copy.进货.进货质检版本
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_receiptInspectRuleVer1 ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ReceiptInspectRuleVer1
		{
			get	
			{	
				return m_receiptInspectRuleVer1 ;
			}
			set	
			{	
				m_receiptInspectRuleVer1 = value ;	
			}
		}
			
		

		/// <summary>
		/// 在库质检．版本
		/// 料品质量相关信息数据传输对象 Copy.在库.在库质检．版本
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_inStockInspectRule ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData InStockInspectRule
		{
			get	
			{	
				return m_inStockInspectRule ;
			}
			set	
			{	
				m_inStockInspectRule = value ;	
			}
		}
			
		

		/// <summary>
		/// 在库质检版本
		/// 料品质量相关信息数据传输对象 Copy.在库.在库质检版本
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_inStockInspectRuleVer ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData InStockInspectRuleVer
		{
			get	
			{	
				return m_inStockInspectRuleVer ;
			}
			set	
			{	
				m_inStockInspectRuleVer = value ;	
			}
		}
			
		

		/// <summary>
		/// 退货质检．版本 
		/// 料品质量相关信息数据传输对象 Copy.退货.退货质检．版本 
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_saleReturnCheckupRule ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData SaleReturnCheckupRule
		{
			get	
			{	
				return m_saleReturnCheckupRule ;
			}
			set	
			{	
				m_saleReturnCheckupRule = value ;	
			}
		}
			
		

		/// <summary>
		/// 退货质检版本
		/// 料品质量相关信息数据传输对象 Copy.退货.退货质检版本
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_saleReturnCheckupRuleVer ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData SaleReturnCheckupRuleVer
		{
			get	
			{	
				return m_saleReturnCheckupRuleVer ;
			}
			set	
			{	
				m_saleReturnCheckupRuleVer = value ;	
			}
		}
			
		

		/// <summary>
		/// 完工质检．版本
		/// 料品质量相关信息数据传输对象 Copy.完工.完工质检．版本
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_buildCompleteCheckUpRule ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData BuildCompleteCheckUpRule
		{
			get	
			{	
				return m_buildCompleteCheckUpRule ;
			}
			set	
			{	
				m_buildCompleteCheckUpRule = value ;	
			}
		}
			
		

		/// <summary>
		/// 完工质检版本
		/// 料品质量相关信息数据传输对象 Copy.完工.完工质检版本
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_buildCompleteCheckUpRuleVer ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData BuildCompleteCheckUpRuleVer
		{
			get	
			{	
				return m_buildCompleteCheckUpRuleVer ;
			}
			set	
			{	
				m_buildCompleteCheckUpRuleVer = value ;	
			}
		}
			
		

		/// <summary>
		/// 其他质检．版本
		/// 料品质量相关信息数据传输对象 Copy.其他.其他质检．版本
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_shipmentInspectRule ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ShipmentInspectRule
		{
			get	
			{	
				return m_shipmentInspectRule ;
			}
			set	
			{	
				m_shipmentInspectRule = value ;	
			}
		}
			
		

		/// <summary>
		/// 其他质检版本
		/// 料品质量相关信息数据传输对象 Copy.其他.其他质检版本
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_shipmentInspectRuleVer ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ShipmentInspectRuleVer
		{
			get	
			{	
				return m_shipmentInspectRuleVer ;
			}
			set	
			{	
				m_shipmentInspectRuleVer = value ;	
			}
		}
			
		

		/// <summary>
		/// 破坏性检验数
		/// 料品质量相关信息数据传输对象 Copy.其他.破坏性检验数
		/// </summary>
		private System.Int32 m_destroyInspectQty ;
		[DataMember(IsRequired=false)]
		public System.Int32 DestroyInspectQty
		{
			get	
			{	
				return m_destroyInspectQty ;
			}
			set	
			{	
				m_destroyInspectQty = value ;	
			}
		}
			
		

		/// <summary>
		/// 质检周期（天）
		/// 料品质量相关信息数据传输对象 Copy.Misc.质检周期（天）
		/// </summary>
		private System.Int32 m_inspectPeriod ;
		[DataMember(IsRequired=false)]
		public System.Int32 InspectPeriod
		{
			get	
			{	
				return m_inspectPeriod ;
			}
			set	
			{	
				m_inspectPeriod = value ;	
			}
		}
			
		

		/// <summary>
		/// 出货质检．版本
		/// 料品质量相关信息数据传输对象 Copy.Misc.出货质检．版本
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_shipInspectRule ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ShipInspectRule
		{
			get	
			{	
				return m_shipInspectRule ;
			}
			set	
			{	
				m_shipInspectRule = value ;	
			}
		}
			
		

		/// <summary>
		/// 出货质检版本
		/// 料品质量相关信息数据传输对象 Copy.Misc.出货质检版本
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_shipInspectRuleVer ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ShipInspectRuleVer
		{
			get	
			{	
				return m_shipInspectRuleVer ;
			}
			set	
			{	
				m_shipInspectRuleVer = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
														 
		/// <summary>
		/// 质量描述
		/// 料品质量相关信息数据传输对象 Copy.其他.质量描述
		/// </summary>
		[DataMember(IsRequired=false)]
		public string QualityDescription
		{
			get
			{
				if (m_Multi_qualityDescription == null)
					return String.Empty ;
				else
					return m_Multi_qualityDescription.DefaultLangValue ;
			}
			set
			{
				if (m_Multi_qualityDescription == null)
					m_Multi_qualityDescription = new  UFSoft.UBF.Util.Data.MultiLangDataDict() ;
				m_Multi_qualityDescription.DefaultLangValue = value ;
			}
		}
		private UFSoft.UBF.Util.Data.MultiLangDataDict m_Multi_qualityDescription ;
		/// <summary>
		/// 多语属性: 质量描述
		/// 料品质量相关信息数据传输对象 Copy.其他.质量描述
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Util.Data.MultiLangDataDict Multi_QualityDescription
		{
			get
			{
				return m_Multi_qualityDescription;
			}
			set
			{
				m_Multi_qualityDescription = value ;	
			}
		}
																														
		#endregion 
	} 	
}
